package Practice;
import java.util.Scanner;
public class PrintEach {
    public static void Print(int num){
        if(num>9){
            Print(num/10);
        }
        System.out.print(num%10+" ");
    }
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        Print(scan.nextInt());
    }
}
